package com.example.xpvideo.entity.res;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.List;

public class LocalGoodsDetailRes {
    /**
     *主键
     * ${column.comment}
     * isnull 1
     */
    @ApiModelProperty(value="$column.comment",position=1)
    private Integer id;
    private List<LocalGoodsShopRes> localGoodsShopResList;
    /**
     * 商品名称
     * isnull 0
     */        @ApiModelProperty(value="商品名称",position=2)
    private String commodityName;
    /**
     * 商品详细描述(富文本)
     * isnull 0
     */        @ApiModelProperty(value="商品详细描述(富文本)",position=11)
    private String content;
    /**
     * 使用须知（富文本）
     * isnull 0
     */        @ApiModelProperty(value="使用须知（富文本）",position=38)
    private String conditions;
    /**
     * 商品编码
     * isnull 0
     */        @ApiModelProperty(value="商品编码",position=3)
    private String code;
    /**
     * 商品主图
     * isnull 0
     */        @ApiModelProperty(value="商品主图",position=8)
    private String image;
    /**
     * 商品轮播图（图片数组）
     * isnull 0
     */        @ApiModelProperty(value="商品轮播图（图片数组）",position=35)
    private String carousel;
    /**
     * 商品一级分类id
     * isnull 0
     */        @ApiModelProperty(value="商品一级分类id",position=4)
    private Integer firstCateId;
    /**
     * 分类名称
     * isnull 0
     */        @ApiModelProperty(value="分类名称",position=2)
    private String categoriesName;
    /**
     * 分类图标
     * isnull 0
     */        @ApiModelProperty(value="分类图标",position=3)
    private String img;
    /**
     * 销售状态: 0-仓库中；1-上架中
     * isnull 0
     */        @ApiModelProperty(value="销售状态: 0-仓库中；1-上架中",position=7)
    private Object status;
    /**
     * 实际销量
     * isnull 0
     */        @ApiModelProperty(value="实际销量",position=13)
    private Integer salesActual;
    /**
     * 商品现价
     * isnull 0
     */        @ApiModelProperty(value="商品现价",position=16)
    private BigDecimal nowPrice;
    /**
     * 市场价(商品吊牌价/划线价)
     * isnull 0
     */        @ApiModelProperty(value="市场价(商品吊牌价/划线价)",position=17)
    private BigDecimal originalPrice;

    /**
     * 热度
     * isnull 0
     */        @ApiModelProperty(value="热度",position=38)
    private Integer isHot;

    /**
     * 在售结束时间
     * isnull 0
     */        @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @ApiModelProperty(value="创建时间",position=5)
    private LocalDateTime createTime;
    /**
     * 在售结束时间
     * isnull 0
     */        @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @ApiModelProperty(value="更新时间",position=5)
    private LocalDateTime updateTime;
    /**
     * 一级分销比例
     * isnull 0
     */            private Object firstRatio;
    /**
     * 二级分销比例
     * isnull 0
     */            private Object secondRatio;

    public Object getFirstRatio() {
        return firstRatio;
    }

    public void setFirstRatio(Object firstRatio) {
        this.firstRatio = firstRatio;
    }

    public Object getSecondRatio() {
        return secondRatio;
    }

    public void setSecondRatio(Object secondRatio) {
        this.secondRatio = secondRatio;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public List<LocalGoodsShopRes> getLocalGoodsShopResList() {
        return localGoodsShopResList;
    }

    public void setLocalGoodsShopResList(List<LocalGoodsShopRes> localGoodsShopResList) {
        this.localGoodsShopResList = localGoodsShopResList;
    }

    public String getCommodityName() {
        return commodityName;
    }

    public void setCommodityName(String commodityName) {
        this.commodityName = commodityName;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getConditions() {
        return conditions;
    }

    public void setConditions(String conditions) {
        this.conditions = conditions;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getImage() {
        return image;
    }

    public void setImage(String image) {
        this.image = image;
    }

    public String getCarousel() {
        return carousel;
    }

    public void setCarousel(String carousel) {
        this.carousel = carousel;
    }

    public Integer getFirstCateId() {
        return firstCateId;
    }

    public void setFirstCateId(Integer firstCateId) {
        this.firstCateId = firstCateId;
    }

    public String getCategoriesName() {
        return categoriesName;
    }

    public void setCategoriesName(String categoriesName) {
        this.categoriesName = categoriesName;
    }

    public String getImg() {
        return img;
    }

    public void setImg(String img) {
        this.img = img;
    }

    public Object getStatus() {
        return status;
    }

    public void setStatus(Object status) {
        this.status = status;
    }

    public Integer getSalesActual() {
        return salesActual;
    }

    public void setSalesActual(Integer salesActual) {
        this.salesActual = salesActual;
    }

    public BigDecimal getNowPrice() {
        return nowPrice;
    }

    public void setNowPrice(BigDecimal nowPrice) {
        this.nowPrice = nowPrice;
    }

    public BigDecimal getOriginalPrice() {
        return originalPrice;
    }

    public void setOriginalPrice(BigDecimal originalPrice) {
        this.originalPrice = originalPrice;
    }

    public Integer getIsHot() {
        return isHot;
    }

    public void setIsHot(Integer isHot) {
        this.isHot = isHot;
    }

    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    public LocalDateTime getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(LocalDateTime updateTime) {
        this.updateTime = updateTime;
    }
}
